package com.indeep.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.indeep.user.mapper.po.AppUserAuditPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface AppUserAuditMapper extends BaseMapper<AppUserAuditPO> {

    boolean insertOrUpdate(AppUserAuditPO appUserAuditDO);




    // 批量更新
    @Update("<script>" +
            "update app_user_audit set status =0  where " +
            "user_id in(" +
            "<foreach collection=\"ids\" item=\"item\" separator=\",\">\n" +
            "    #{item}\n" +
            "</foreach>)" +
            "</script>")
    Integer updateByIds(List<Long> ids);
}
